package com.example.covid.model;

import lombok.Data;


@Data
public class VirusData {
    private String state;
    private String country;
    private int totalcase;
    private int newcase;


    public VirusData(String state, String country, int latestTotalCases, int diffFormPrevDay) {
        this.state = state;
        this.country = country;
        this.totalcase = latestTotalCases;
        this.newcase = diffFormPrevDay;
    }

    public String getState() {
        return state;
    }

    public String getCountry() {
        return country;
    }

    public int getDiffFormPrevDay() {
        return newcase;
    }

    public int getLatestTotalCases() {
        return totalcase;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public void setDiffFormPrevDay(int diffFormPrevDay) {
        this.newcase = diffFormPrevDay;
    }

    public void setLatestTotalCases(int latestTotalCases) {
        this.totalcase = latestTotalCases;
    }

    public void setState(String state) {
        this.state = state;
    }
}
